Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Oct 17, 2025

This was supporting a use case that doesn't exist - having the custom deployer read in the admin username/password. And the custom deployer is in the process of being smoked. One less dependency!

This was supporting a use case that doesn't exist - having the custom deployer read in the admin username/password. And the custom deployer is in the process of being smoked. One less dependency!
@rjrudin rjrudin requested a review from anu3990 as a code owner October 17, 2025 19:42
Copilot AI review requested due to automatic review settings October 17, 2025 19:42
@github-actions
Copy link

Copyright Validation Results
Total: 4 | Passed: 1 | Failed: 0 | Skipped: 3 | at: 2025-10-17 19:43:11 UTC | commit: e6e2f87

⏭️ Skipped (Excluded) Files

  • Jenkinsfile
  • package-lock.json
  • package.json

✅ Valid Files

  • etc/test-setup-prompt.js

✅ All files have valid copyright headers!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Removes the 'read' module dependency that was used for prompting admin credentials, as the custom deployer that required this functionality is being deprecated. The prompting logic is replaced with hardcoded admin/admin credentials.

  • Removed 'read' module dependency from package.json
  • Simplified test-setup-prompt.js to use hardcoded admin/admin credentials instead of prompting
  • Removed unnecessary sleep delays in Jenkins pipeline

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
package.json Removed 'read' module dependency
etc/test-setup-prompt.js Simplified to return hardcoded admin/admin credentials, removed all prompting logic
Jenkinsfile Removed sleep delays that were waiting for setup completion

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

AdminPrompter.prototype.passwordCallback = adminPasswordCallback;
AdminPrompter.prototype.finish = adminFinish;
// Simplified version - no more prompting, just returns admin/admin
// TODO: Remove this file when ml-gradle migration is complete
Copy link

Copilot AI Oct 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The TODO comment suggests this file should be removed eventually. Consider adding a timeline or milestone reference to make this actionable, such as 'TODO: Remove this file in v2.0 when ml-gradle migration is complete'.

Suggested change
// TODO: Remove this file when ml-gradle migration is complete
// TODO: Remove this file in v2.0 when ml-gradle migration is complete

Copilot uses AI. Check for mistakes.

prompter.userPrompt();
// Always use admin/admin - no prompting needed
console.log('Using default admin credentials (admin/admin)');
Copy link

Copilot AI Oct 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logging credentials to the console, even default ones, could expose sensitive information in logs. Consider using a more generic message like 'Using default admin credentials' without displaying the actual values.

Suggested change
console.log('Using default admin credentials (admin/admin)');
console.log('Using default admin credentials');

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

@stevebio stevebio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except for the usual suspects, all tests pass, no problems.

@rjrudin rjrudin merged commit 51535dd into develop Oct 20, 2025
2 of 3 checks passed
@rjrudin rjrudin deleted the feature/24763-remove-read branch October 20, 2025 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants